package com.retail.xiaocui.server.mapper;

import java.util.List;

import com.retail.xiaocui.common.domain.Early;

/**
 * 预警值设置Mapper接口
 *
 * @author retail
 * @date 2024-02-29
 */
public interface EarlyMapper
{
    /**
     * 查询预警值设置
     *
     * @param warningId 预警值设置主键
     * @return 预警值设置
     */
    public Early selectEarlyByWarningId(Long warningId);

    /**
     * 查询预警值设置列表
     *
     * @param early 预警值设置
     * @return 预警值设置集合
     */
    public List<Early> selectEarlyList(Early early);

    /**
     * 新增预警值设置
     *
     * @param early 预警值设置
     * @return 结果
     */
    public int insertEarly(Early early);

    /**
     * 修改预警值设置
     *
     * @param early 预警值设置
     * @return 结果
     */
    public int updateEarly(Early early);

    /**
     * 删除预警值设置
     *
     * @param warningId 预警值设置主键
     * @return 结果
     */
    public int deleteEarlyByWarningId(Long warningId);

    /**
     * 批量删除预警值设置
     *
     * @param warningIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEarlyByWarningIds(Long[] warningIds);

    long selectCount();



}
